<AppPortletContainer :layoutOpts="{{> @macro/common/layoutPos.hbs layout=item.psLayout layoutPos=item.psLayoutPos}}" title="{{item.title}}" :isShowTitle="{{item.showTitleBar}}" {{#if item.width}}width="{{item.width}}px"{{/if}} {{#if item.height}}height="{{item.height}}px"{{/if}}>
{{#each item.psControls as | portlet |}}
    <{{portlet.codeName}}Portlet
        name="{{portlet.name}}"
        :context="store.context"
        :viewParams="store.viewParams"
        :pLoadingHelper="store.loadingHelper"
        :pViewCtx="store.viewCtx"
        @ctrl-init="(name:string, ability:any) => { handleCtrlInit(controller, name, ability) }"
        @ctrl-action="(name:string, action:any, data:any) => { handleCtrlAction(controller, name, action, data) }"
        @ctrl-destroy="(name:string, data:any) => { handleCtrlDestroy(controller, name, data) }"
    ></{{portlet.codeName}}Portlet>       
{{/each}}
</AppPortletContainer>
